/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package horizon.component;

import horizon.entity.Entity;

/**
 *
 * @author J_Laptop
 */
public abstract class Component {
    
    protected String id;
    protected Entity owner;
    
    public Component(String id){
        
        this.id = id;
        
    }
    
    public void setOwner(Entity o){
        
        owner = o;
        
    }
    
    public String getId(){
        
        return id;
        
    }
   
    public abstract void update(long elapsedTime);
    
}
